home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / modprolg / mod-prol.lha / Prolog / INIT < prev    next >
Text File  |  1991-12-12  |  364b  |  18 lines

  1. #!/usr/local/bin/bash
  2.  
  3. SBPDIR=~bp/Prolog
  4. VERSION="Version 3.1 "
  5. MEMORY=1000000
  6.  
  7. echo "Using SB_Prolog $VERSION"
  8. SIMPATH="$SBPDIR/lib:$SBPDIR/modlib:$SBPDIR/cmplib:."
  9.  
  10. function sbp() {
  11.   local readloop='$readloop'  #disgusting, but in bash unavoidable, hack!
  12.  
  13.   $SBPDIR/sim/sbprolog -m $MEMORY $SBPDIR/modlib/$readloop
  14. }
  15.  
  16. export -f sbp
  17. export SBPDIR MEMORY SIMPATH
  18.